<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BRepositoryFactory
 *
 * @author I062261
 */
class BRepositoryFactory { 
    private static $repository2 = null;

    public static function createRepository($setting = NULL) {
        //$callerClass = get_called_class();
        return new BRepository($setting);
    }        

    public static function createRepository2($setting = NULL) {
        if (self::$repository2 == null) {
            self::$repository2 = new BRepository2();
        }

        return self::$repository2;
    }        
}

?>
